package ${package};

<#if imports??>
    <#list imports as import>
import ${import};
    </#list>
</#if>
import ${parent + ".extend." + property + "Extend"};
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.*;

/**
 * ${(remarks=='')?string(name, remarks)} model
 * @author ${author}
 * @date ${.now?string("yyyy/MM/dd HH:mm:ss")}
 * @version V1.0
 */
@Table("${name}")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ${property} extends ${property}Extend{

<#if columns??>
    <#list columns as field>
    <#if field.remarks != "" && field.remarks??>
    /** ${field.remarks}*/
    </#if>
    <#if field.pk && field.auto>
    @Id(keyType = KeyType.Auto)
    <#elseif field.pk && !field.auto>
    @Id
    </#if>
    private ${field.classType} ${field.alias};

    </#list>
</#if>
}